<%@ page import="edu.ads.bookloan.LoanHistory" %>



<div class="fieldcontain ${hasErrors(bean: loanHistoryInstance, field: 'dateReturned', 'error')} ">
	<label for="dateReturned">
		<g:message code="loanHistory.dateReturned.label" default="Date Returned" />
		
	</label>
	<g:datePicker name="dateReturned" precision="day"  value="${loanHistoryInstance?.dateReturned}" default="none" noSelection="['': '']" />
</div>

<div class="fieldcontain ${hasErrors(bean: loanHistoryInstance, field: 'expectedReturnDate', 'error')} ">
	<label for="expectedReturnDate">
		<g:message code="loanHistory.expectedReturnDate.label" default="Expected Return Date" />
		
	</label>
	<g:datePicker name="expectedReturnDate" precision="day"  value="${loanHistoryInstance?.expectedReturnDate}" default="none" noSelection="['': '']" />
</div>

<div class="fieldcontain ${hasErrors(bean: loanHistoryInstance, field: 'inventoryItem', 'error')} required">
	<label for="inventoryItem">
		<g:message code="loanHistory.inventoryItem.label" default="Inventory Item" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="inventoryItem" name="inventoryItem.id" from="${edu.ads.bookloan.InventoryItem.list()}" optionKey="id" required="" value="${loanHistoryInstance?.inventoryItem?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: loanHistoryInstance, field: 'person', 'error')} required">
	<label for="person">
		<g:message code="loanHistory.person.label" default="Person" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="person" name="person.id" from="${edu.ads.bookloan.Person.list()}" optionKey="id" required="" value="${loanHistoryInstance?.person?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: loanHistoryInstance, field: 'rentalDays', 'error')} required">
	<label for="rentalDays">
		<g:message code="loanHistory.rentalDays.label" default="Rental Days" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="rentalDays" type="number" value="${loanHistoryInstance.rentalDays}" required=""/>
</div>

